package com.rchat.pocmini.activity.main;

import com.aso.common.http.delegate.HttpCallbackImpl;
import com.rchat.pocmini.common.mvp.BaseModel;
import com.rchat.pocmini.common.mvp.BasePresenter;
import com.rchat.pocmini.common.mvp.BaseView;

/**
 * Created by itsdf07 on 2017/7/25.
 */

public interface MainContract {
    interface View extends BaseView {

    }

    abstract class Presenter extends BasePresenter<MainContract.View, MainContract.Model> {
        /**
         * 初始化JPush相关
         */
        abstract void initJPush();

        /**
         * 查询是否有JPush尚未推送成功的信息
         */
        abstract void queryJPushMessage();

        /**
         * 申请会话
         */
        abstract void pttTaklRequest();

        /**
         * 结束会话
         */
        abstract void pttTalkRelease();
    }

    interface Model extends BaseModel {
        /**
         * 查询是否有JPush尚未推送成功的信息
         *
         * @param userName
         * @param callback
         */
        void queryJPushMessage(String userName, HttpCallbackImpl callback);
    }
}
